// FILE: Chip8Screen.cpp by Richard Hughes 14/05/2012
//
// DESC: Implements the Chip8 Screen

// INCLUDES
#include "Chip8Screen.h"
#include "Chip8Emulator.h"

// NAMESPACES
using namespace std;

namespace Emulator
{
namespace Chip8
{

/*************************************************************/
//
// CLASS: Chip8Screen
//
// DESC: The Chip 8 Screen definition
//
/*************************************************************/

void Chip8Screen::ScrollRight(EmulatorRunningMode mode)
{
	this->_xOffset += mode == EmulatorRunningMode_Chip8 ? 2 : 4; // TODO: mega chip8 mode
} // ScrollRight

void Chip8Screen::ScrollLeft(EmulatorRunningMode mode)
{
	this->_xOffset -= mode == EmulatorRunningMode_Chip8 ? 2 : 4; // TODO: mega chip8 mode
} // ScrollLeft

void Chip8Screen::ScrollDown(int lines)
{
	this->_yOffset += lines;
} // ScrollDown

} // end namespace Chip8
} // end namespace Emulator

// EOF: Chip8ROM.cpp